package com.bit.cfdi.web.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.bit.cfdi.web.dao.DesgloseComprobanteDAO;
import com.bit.cfdi.web.domain.DesgloseComprobante;
@Service
public class DesgloseComprobanteService {

	@Autowired DesgloseComprobanteDAO desgloseComprobanteDAO;
	
	public List<DesgloseComprobante> getAll() throws DataAccessException {
		return desgloseComprobanteDAO.getAll();		
	}

	public void save(DesgloseComprobante desgloseComprobante) throws DataAccessException {
		desgloseComprobanteDAO.save(desgloseComprobante);
	}

}
